Alexander Mikhaylenko [Wed, 6 Jan 2021 17:04:55 +0000 (22:04 +0500)]
headerbar: Prepend start window controls instead of appending
Make sure they are always in the correct position.
Matthias Clasen [Tue, 5 Jan 2021 21:34:27 +0000 (21:34 +0000)]
Merge branch 'media-caps' into 'master'
media: Be more specific in our caps
See merge request GNOME/gtk!3037
Matthias Clasen [Tue, 5 Jan 2021 19:35:46 +0000 (19:35 +0000)]
Merge branch 'simplify-toolbar' into 'master'
3to4: Remove GtkToolbar::toolbar_style
See merge request GNOME/gtk!3040
Matthias Clasen [Tue, 5 Jan 2021 18:57:47 +0000 (13:57 -0500)]
3to4: Remove GtkToolbar::toolbar_style
The property was removed (with the rest of the widget),
so keeping it around in the ui file makes no sense.
Testcase included.
Matthias Clasen [Tue, 5 Jan 2021 18:41:27 +0000 (18:41 +0000)]
Merge branch 'ebassi/migrating-clipboard' into 'master'
Ebassi/migrating clipboard
See merge request GNOME/gtk!3039
Emmanuele Bassi [Tue, 5 Jan 2021 18:10:59 +0000 (18:10 +0000)]
Merge branch 'dlech-master-patch-06007' into 'master'
docs: fix parameter reference in gtk_bitset_contains()
See merge request GNOME/gtk!3035
David Lechner [Tue, 5 Jan 2021 05:36:19 +0000 (05:36 +0000)]
docs: fix parameter reference in gtk_bitset_contains()
This fixes an error in the doc comments where the first parameter was
referred to as @bitset instead of @self.
Emmanuele Bassi [Tue, 5 Jan 2021 16:51:14 +0000 (16:51 +0000)]
docs: Add migration section for GtkClipboard
A simple copy/paste text example, plus directing people towards the
appropriate GType to replace the old convenience API.
Matthias Clasen [Tue, 5 Jan 2021 16:49:53 +0000 (16:49 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Matthiasc/for master
See merge request GNOME/gtk!3038
Daniel Șerbănescu [Tue, 5 Jan 2021 16:38:02 +0000 (17:38 +0100)]
Updated the Romanian Translation
Emmanuele Bassi [Tue, 5 Jan 2021 16:19:21 +0000 (16:19 +0000)]
docs: Preformat some symbols
Matthias Clasen [Tue, 5 Jan 2021 16:16:10 +0000 (11:16 -0500)]
gtk-demo: Small a11y fix
Label the entry in the assistant demo.
Matthias Clasen [Tue, 5 Jan 2021 16:15:33 +0000 (11:15 -0500)]
a11y: Only spew help once
Make GTK_A11Y=help only spew once, and avoid a warning
when we do.
Matthias Clasen [Tue, 5 Jan 2021 15:59:59 +0000 (10:59 -0500)]
popup: Mention the popover arrow in the docs
Suggested by Jonas.
Matthias Clasen [Tue, 5 Jan 2021 15:22:09 +0000 (15:22 +0000)]
Merge branch 'no-gl-context' into 'master'
Disable GL support in gstreamer media backend on Windows
See merge request GNOME/gtk!3034
Matthias Clasen [Tue, 5 Jan 2021 15:20:25 +0000 (15:20 +0000)]
Merge branch 'wip/baedert/for-master' into 'master'
Wip/baedert/for master
See merge request GNOME/gtk!3029
Matthias Clasen [Tue, 5 Jan 2021 14:21:01 +0000 (09:21 -0500)]
media: Be more specific in our caps
We can only handle 2D textures, so tell gstreamer
about that.
Matthias Clasen [Tue, 5 Jan 2021 14:26:38 +0000 (14:26 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
some docs tweaks
See merge request GNOME/gtk!3036
Matthias Clasen [Sat, 2 Jan 2021 21:34:34 +0000 (16:34 -0500)]
docs: Cosmetics
Matthias Clasen [Tue, 5 Jan 2021 13:20:36 +0000 (08:20 -0500)]
docs: Flesh out Popup layout docs
We have nice illustrations for this, lets use them.
Yuri Chornoivan [Tue, 5 Jan 2021 08:08:44 +0000 (08:08 +0000)]
Update Ukrainian translation
Timm Bäder [Sun, 3 Jan 2021 21:41:02 +0000 (22:41 +0100)]
csstokenizer: Keep a GString for name parsing around
We only every parse one of those at a time, so keep a GString around for
it. This way we don't have to create a new GString every time we parse
an identifier. Doesn't spare us the strdup though.
Timm Bäder [Sun, 3 Jan 2021 20:53:20 +0000 (21:53 +0100)]
csstokenizer: Add separate init functions for token types
Using a variadic function is just awkward there. Use different init
functions and use them as appropriate; we already know which one to call
everywhere.
Timm Bäder [Sun, 3 Jan 2021 11:33:25 +0000 (12:33 +0100)]
builder: Remove unused typedef
Timm Bäder [Sun, 3 Jan 2021 11:27:32 +0000 (12:27 +0100)]
builder: Remove unused function prototype
Timm Bäder [Sun, 3 Jan 2021 11:23:01 +0000 (12:23 +0100)]
builderparser: Use GPtrArray for stack
Chun-wei Fan [Tue, 5 Jan 2021 06:30:08 +0000 (14:30 +0800)]
gstreamer media backend: Disable OpenGL on Windows
...for at least WGL, since we are not allowed to use wglMakeCurrent(),
which is eventually called by gdk_gl_context_make_current() to share WGL
contexts across different threads, which will cause a crash.
This means, we cannot enable WGL in the gstreamer media backend on
Windows.
Matthias Clasen [Tue, 5 Jan 2021 00:54:37 +0000 (00:54 +0000)]
Merge branch 'matthiasc/gl-media-stream' into 'master'
Use GL in the gstreamer media backend
See merge request GNOME/gtk!3027
Matthias Clasen [Mon, 4 Jan 2021 23:26:29 +0000 (18:26 -0500)]
gtk-demo: Use GtkVideo in the fishbowl
The demo is called 'Video', so we should actually
use a GtkVideo widget. Doing things this way has
the advantage that we get GL support, which wasn't
working with GtkPicture.
Matthias Clasen [Fri, 1 Jan 2021 17:12:35 +0000 (12:12 -0500)]
media: Only force GL if we're using a GL renderer
When we are not using a GL renderer, getting GL textures
is no advantage to us, so don't make gstreamer send its
frames as GL memory in this case.
Matthias Clasen [Fri, 1 Jan 2021 16:31:49 +0000 (11:31 -0500)]
media: Convince gstreamer to deliver GL memory
Use a glsinkbin to make gstreamer deliver GL memory.
Benjamin Otte [Tue, 29 Dec 2020 19:11:51 +0000 (14:11 -0500)]
media: Add support for OpenGL to GtkGstMediaFile
Matthias Clasen [Tue, 29 Dec 2020 20:55:28 +0000 (15:55 -0500)]
video: Realize the media stream before setting a file
This makes it so that we obtain a GL context before
creating the GstSink, so we at least advertise our
ability to handle GL buffer.
Gstreamer still won't send us any.
Matthias Clasen [Mon, 4 Jan 2021 18:14:00 +0000 (18:14 +0000)]
Merge branch 'wip/jimmac/popover-separators' into 'master'
Adwaita: increase cotrast of popover separators
Closes #3535
See merge request GNOME/gtk!3033
Jakub Steiner [Mon, 4 Jan 2021 16:53:40 +0000 (17:53 +0100)]
Adwaita: increase contrast of popover separators
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3535
Matthias Clasen [Mon, 4 Jan 2021 13:55:08 +0000 (13:55 +0000)]
Merge branch 'window-geometry-info' into 'master'
gtk/window: remove GtkWindowGeometryInfo from public header file
See merge request GNOME/gtk!3028
Aurimas Černius [Mon, 4 Jan 2021 12:09:40 +0000 (14:09 +0200)]
Updated Lithuanian translation
Philipp Kiemle [Sun, 3 Jan 2021 13:41:25 +0000 (13:41 +0000)]
Update German translation
Philipp Kiemle [Sun, 3 Jan 2021 13:40:13 +0000 (13:40 +0000)]
Update German translation
Timm Bäder [Sun, 3 Jan 2021 09:17:18 +0000 (10:17 +0100)]
messagedialog: Modernize source file
Move vfunc implementations above class_init, remove unneeded prototypes,
properly indent everything and remove trailing whitespace
Timm Bäder [Sun, 3 Jan 2021 07:45:30 +0000 (08:45 +0100)]
widget: Refactor gtk_widget_class_set_template()
Don't call gbytes_get_data/get_size so often and exit early if the given
bytes is already precompiled.
Timm Bäder [Sun, 3 Jan 2021 06:26:44 +0000 (07:26 +0100)]
widget: Inline setup_template_child() into only caller
This is a pretty short and self-contained function.
Timm Bäder [Thu, 31 Dec 2020 11:58:30 +0000 (12:58 +0100)]
icontheme: Make a parameter const
Timm Bäder [Thu, 31 Dec 2020 11:48:41 +0000 (12:48 +0100)]
settings: Overallocate property_values
Instead of walking the pspecs twice and checking for the owner_type,
just allocate n_pspecs entries. They are the same value right now
anyway, but even if they aren't it doesn't hurt to have a few extra ones
allocated.
Timm Bäder [Thu, 31 Dec 2020 11:40:41 +0000 (12:40 +0100)]
settings: Load keyfiles ourselves
This does not change anything in the case where the .init file does not
exist. We still hit the disk once. Otherwise, we now only hit it once
instead of twice and avoid a potential race-condition.
Timm Bäder [Thu, 31 Dec 2020 07:02:10 +0000 (08:02 +0100)]
widget: Use gtk_widget_get_native() in get_surface_allocation()
Timm Bäder [Tue, 29 Dec 2020 14:19:35 +0000 (15:19 +0100)]
gtksettings: Remove unused defines
Timm Bäder [Sun, 27 Dec 2020 20:35:21 +0000 (21:35 +0100)]
render: Inline function into only caller
Timm Bäder [Sun, 27 Dec 2020 20:14:49 +0000 (21:14 +0100)]
frame: Remove unnecessary function
Just call the vfunc directly in the only place we used to call the old
wrapper
Timm Bäder [Sun, 27 Dec 2020 20:06:51 +0000 (21:06 +0100)]
gesture: Replace tabs
Timm Bäder [Sun, 27 Dec 2020 17:14:57 +0000 (18:14 +0100)]
box: Replace tabs with spaces
Timm Bäder [Sun, 27 Dec 2020 17:11:29 +0000 (18:11 +0100)]
scrolledwindow: Use g_clear_handle_id
Timm Bäder [Sun, 27 Dec 2020 17:05:44 +0000 (18:05 +0100)]
viewport: Small cleanup
No need to check for visibility before calling gtk_widget_measure().
Timm Bäder [Sun, 27 Dec 2020 16:11:12 +0000 (17:11 +0100)]
widget: Move quark_builder_set_id declaration to other GQuarks
Timm Bäder [Sun, 27 Dec 2020 12:23:11 +0000 (13:23 +0100)]
widget: Re-arrange some more functions
Timm Bäder [Sun, 27 Dec 2020 12:10:35 +0000 (13:10 +0100)]
wiget: Fix whitespace issues
Switch from tabs to spaces everywhere consistently and remove all
trailing whitespace.
Timm Bäder [Sun, 27 Dec 2020 11:57:22 +0000 (12:57 +0100)]
widget: Move a few vfunc implementations above class_init
And save us the prototypes at the top of the file this way.
Timm Bäder [Sat, 26 Dec 2020 09:04:26 +0000 (10:04 +0100)]
nevertrigger: Remove unused instance members
Timm Bäder [Sat, 26 Dec 2020 08:59:46 +0000 (09:59 +0100)]
shortcutmanager: Use g_list_store_find()
We require glib 2.66 these days, so we can unconditionally use
g_list_store_find().
Timm Bäder [Sat, 26 Dec 2020 08:44:36 +0000 (09:44 +0100)]
gesturelongpress: Remove a useless cast
We already get a GtkGestureLongPress here.
Timm Bäder [Sat, 26 Dec 2020 08:43:08 +0000 (09:43 +0100)]
gesturelongpress: Keep the pspec around
So we can use it to notify(), like we do everywhere else.
Timm Bäder [Fri, 25 Dec 2020 11:20:35 +0000 (12:20 +0100)]
label: Remove unused private functions
Timm Bäder [Fri, 25 Dec 2020 11:07:08 +0000 (12:07 +0100)]
label: Remove mnemonics_visible_apply_recursively from private header
This is only used in gtklabel.c
Timm Bäder [Fri, 25 Dec 2020 11:05:28 +0000 (12:05 +0100)]
label: Modernize source file
Try to sort toplevel functions to minimize unnecessary function
prototypes at the beginning of the file, get rid of all tabs and
trailing whitespace.
Timm Bäder [Fri, 25 Dec 2020 10:17:03 +0000 (11:17 +0100)]
gtk4-demo: Remove unused size group
Timm Bäder [Fri, 25 Dec 2020 09:17:25 +0000 (10:17 +0100)]
glcontext-wayland: Whitespace
Timm Bäder [Fri, 25 Dec 2020 09:07:43 +0000 (10:07 +0100)]
gesturestylus: Only add histroy element if translation succeeded
Instead of always doing it and then undoing it if the translation does
not succeed.
Timm Bäder [Fri, 25 Dec 2020 08:58:04 +0000 (09:58 +0100)]
gesturestylus: Retrieve event and controller widget only once
Make it clear that these are not gonna chance while iterating the loop.
Timm Bäder [Thu, 24 Dec 2020 08:27:31 +0000 (09:27 +0100)]
glcontext-wayland: Avoid heap-alloacting small arrays...
every frame.
Timm Bäder [Thu, 24 Dec 2020 08:09:35 +0000 (09:09 +0100)]
glcontext-wayland: Only allocate configs we use
We only use the first one, so don't allocate space for more than that.
Matthias Clasen [Sun, 3 Jan 2021 01:17:19 +0000 (20:17 -0500)]
NEWS: Updates
Matthias Clasen [Sat, 2 Jan 2021 19:04:26 +0000 (19:04 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
video: Tweak the docs
See merge request GNOME/gtk!3026
Matthias Clasen [Sat, 2 Jan 2021 16:17:26 +0000 (11:17 -0500)]
video: Tweak the docs
Point out the limitations and use cases of GtkVideo
and mention that GtkPicture can display video just fine.
Matthias Clasen [Sat, 2 Jan 2021 15:49:46 +0000 (15:49 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
video: Pause on unset too
See merge request GNOME/gtk!3025
Florentina Mușat [Sat, 2 Jan 2021 11:21:43 +0000 (11:21 +0000)]
Update Romanian translation
Matthias Clasen [Sat, 2 Jan 2021 05:06:41 +0000 (00:06 -0500)]
video: Pause on unset too
When new media stream is set on the GtkVideo
widget and we're autoplaying, pause the old one.
Otherwise, the music keeps playing unexpectedly.
Matthias Clasen [Fri, 1 Jan 2021 23:33:01 +0000 (23:33 +0000)]
Merge branch 'wip/chergert/fix-macos-compute-size' into 'master'
macos: fix compute_size and request_layout
Closes #3532
See merge request GNOME/gtk!3023
Matthias Clasen [Fri, 1 Jan 2021 22:48:11 +0000 (22:48 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Matthiasc/for master
Closes #3506 and #3530
See merge request GNOME/gtk!3024
Benjamin Otte [Fri, 1 Jan 2021 21:54:22 +0000 (21:54 +0000)]
Merge branch 'video-stop' into 'master'
video: Stop playing when appropriate
See merge request GNOME/gtk!3022
Matthias Clasen [Fri, 1 Jan 2021 21:25:54 +0000 (16:25 -0500)]
video: Be consistent about play/pause
Always check that the stream is prepared, and the
widget is mapped, before calling gtk_media_stream_play().
Christian Hergert [Fri, 1 Jan 2021 21:11:29 +0000 (13:11 -0800)]
macos: implement compute_size and request_layout
These functions were not implemented when the sizing changes
landed before GTK 4 was released. This fixes an issue with non-
resizeable windows not reacting to layout changes.
Fixes #3532
Christian Hergert [Fri, 1 Jan 2021 21:09:57 +0000 (13:09 -0800)]
macos: avoid setHasShadow unless shadow changes
Christian Hergert [Thu, 31 Dec 2020 19:07:07 +0000 (11:07 -0800)]
macos: fix toplevel present function prototype
No need to return anything here.
Matthias Clasen [Fri, 1 Jan 2021 20:07:25 +0000 (15:07 -0500)]
video: Stop playing when appropriate
When the widget gets unrealized or hidden, pause
the mediastream. Otherwise, audio might keep playing
unexpectedly.
Matthias Clasen [Fri, 1 Jan 2021 16:02:57 +0000 (11:02 -0500)]
center layout: Fix handling of expanding center child
We were not taking spacing into account when adjusting
the size of an expanding center child, causing it to slip
under the end child at times.
Fixes: #3506
Matthias Clasen [Fri, 1 Jan 2021 15:39:08 +0000 (15:39 +0000)]
Merge branch 'wip/chergert/fix-macos-window-check' into 'master'
macos: ensure GdkMacosWindow in surface discovery
Closes #3533
See merge request GNOME/gtk!3021
Matthias Clasen [Fri, 1 Jan 2021 15:14:01 +0000 (10:14 -0500)]
docs: Flesh out the gtk4-builder-tool man page
Add some details about the --3to4 conversion, and
set expectations.
Yuri Chornoivan [Fri, 1 Jan 2021 14:50:35 +0000 (14:50 +0000)]
Update Ukrainian translation
Matthias Clasen [Fri, 1 Jan 2021 14:40:40 +0000 (09:40 -0500)]
docs: Complete a sentence
Fixes: #3530
Matthias Clasen [Fri, 1 Jan 2021 14:23:08 +0000 (14:23 +0000)]
Merge branch 'encode-symbolic-debug' into 'master'
gtk4-encode-symbolic: Add debug output
See merge request GNOME/gtk!3017
Christian Hergert [Thu, 31 Dec 2020 18:44:19 +0000 (10:44 -0800)]
macos: ensure GdkMacosWindow in surface discovery
We want to ignore windows that are not related to those controlled
by the GDK backend.
Fixes #3533
Christian Hergert [Thu, 31 Dec 2020 18:13:46 +0000 (18:13 +0000)]
Merge branch 'macos-mojave' into 'master'
macos: do not crash in mojave
See merge request GNOME/gtk!3020
Ignacio Casal Quinteiro [Thu, 31 Dec 2020 10:35:04 +0000 (11:35 +0100)]
macos: do not crash in mojave
The localizedName property is not available in Mojave
so just ifdef in that case the code out.
David Lechner [Wed, 30 Dec 2020 07:32:27 +0000 (01:32 -0600)]
gtk/window: remove GtkWindowGeometryInfo from public header file
GtkWindowGeometryInfo is only used by static methods in gtkwindow.c
so it doesn't need to be in the public header file.
Matthias Clasen [Wed, 30 Dec 2020 03:34:51 +0000 (03:34 +0000)]
Merge branch 'revert-
224c2674' into 'master'
Revert "Merge branch 'gtk_egl_wayland' into 'master'"
See merge request GNOME/gtk!3018
Matthias Clasen [Wed, 30 Dec 2020 03:32:18 +0000 (03:32 +0000)]
Revert "Merge branch 'gtk_egl_wayland' into 'master'"
This reverts merge request !3011
Matthias Clasen [Wed, 30 Dec 2020 03:32:05 +0000 (03:32 +0000)]
Merge branch 'gtk_egl_wayland' into 'master'
Expose gdk_wayland_surface_get_wl_egl_window()
See merge request GNOME/gtk!3011
Matthias Clasen [Wed, 30 Dec 2020 02:22:16 +0000 (21:22 -0500)]
gtk4-encode-symbolic: Add debug output
Add a --debug option that makes this tool produce
some debug output that can be helpful in tracking
down why symbolic svgs are broken.
Matthias Clasen [Tue, 29 Dec 2020 17:47:01 +0000 (17:47 +0000)]
Merge branch 'mcatanzaro/#3509' into 'master'
message dialog: use title style only if there is secondary text
Closes #3509
See merge request GNOME/gtk!3015
Matthias Clasen [Tue, 29 Dec 2020 17:41:49 +0000 (17:41 +0000)]
Merge branch 'fix-menu-alignment' into 'master'
Fix menu item alignment with submenus
See merge request GNOME/gtk!3016